//
//  HVUIUnreadBadgeView.h
//  hvui
//	圆角背景,白色文本显示未读数
//  Created by moon on 15/10/28.
//  Copyright © 2015年 heimavista. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MKUIBadgeProtocol.h"
NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    MKUIBadgeViewPositionTopRight,//右上角
    MKUIBadgeViewPositionTopLeft,//左上角
    MKUIBadgeViewPositionBottomRight,//右下角
    MKUIBadgeViewPositionBottomLeft,//左下角
} MKUIBadgeViewPosition;
@interface MKUIBadgeViewBase : UIView<MKUIBadgeProtocol>
@property(nonatomic,strong) UIView *backgroundView;//圆角背景视图
@property(nonatomic,assign) MKUIBadgeViewPosition badgePosition;
@property(nonatomic,assign) CGPoint badgeOffset;//与badgeOwner指定位置的偏移量
@property(nonatomic,weak) UIView *badgeOwner;//MKUIBadgeProtocol协议的toView参数
@property(nonatomic,strong,nullable) NSString *badgeString;//要显示的角标文本
@end

@interface MKUIBadgeTextView : MKUIBadgeViewBase
@property(nonatomic,strong) UILabel *badgeLabel;//显示角标的文本
@property(nonatomic,assign) UIEdgeInsets contentInsets;//badgeLabel的内边距，默认为(4, 7, 4, 7)
@end
NS_ASSUME_NONNULL_END


NS_ASSUME_NONNULL_BEGIN
@interface MKUIBadgeDotView : MKUIBadgeViewBase
@property(nonatomic,assign) CGSize badgeDotSize;//圆点尺寸,默认为(10, 10)
@end
NS_ASSUME_NONNULL_END
